/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mtetris;
import java.awt.*;
/**
 *
 * @author Administrator
 */
public class startwin extends Canvas{
    int doty = 338;
    public startwin(){
        this.setBounds(0, 0, 400, 600);
        this.setBackground(Color.BLACK);
    }
    public int getOpt(){
        if(doty==338)return 0;
        else return 1;
    }
    public void setOpt(){
        if(doty==338)doty=388;
        else doty=338;
        this.repaint();
    }
    @Override
    public void paint(Graphics g){
        g.setColor(Color.CYAN);
        g.setFont(new Font("Tahoma", Font.BOLD, 50));
        g.drawString("TETRIS", 105 , 120);

        g.setFont(new Font("Tahoma", Font.BOLD, 20));
        g.drawString("New Game", 135 , 350);
        g.drawString("Quit", 165 , 400);
        g.setColor(Color.RED);
        g.fill3DRect(120, doty, 10, 10, true);
    }
}
